import json

from After_Class.app import BASE_DIR


def build_login_data():
    with open(BASE_DIR + '/data/login_data.json', 'r', encoding='utf-8') as f:
        data = json.load(f)
        new_list =[]
        for i in data:
            username = i['username']
            password = i['password']
            expact = i['expact']
            new_list.append((username, password, expact))

        return new_list

